package com.yuand.mapper;

import com.yuand.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuandong
 * @since 2021-08-06
 */
@Repository
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("select r.* from sys_role r")
    List<SysRole> selectRolesByUserId(Integer userId);
}
